package dao.literaturplugin;

import model.literaturplugin.Book;
import util.WebServiceException;
import util.WebServiceException.ExceptionType;
import dao.GenericDAO;

public class LiteraturpluginDAO extends GenericDAO {

	public void createWithBI(Book b) throws WebServiceException {
		try {
			// Businesslogic can be places here!
			em.persist(b);
		} catch (Exception e) {
			throw new WebServiceException(ExceptionType.DATABASE_ERROR);
		}

	}

}
